<style>
.span2{_display:inline;}
</style>
<form action="{url('estate/index')}" method="get" >       
<table>
	<tr>
		<td>交易类型</td>
    	<td width="100">
        	<select name="type" style="width:80px">                                    
            	<option value="1" {if $_GET['type']==1}selected{/if}>出租</option>   
                <option value="2" {if $_GET['type']==2}selected{/if}>出售</option>
            </select> 
        </td>  	
		<td>房产类型</td>
       <td width="120"><select name="apartment" class="select2" style="width:125px;">
       					<option value="">请选择</option>
                  {loop $apartment $val}
                  {if $val['display']==1}
                  <option value="{$val['id']}" {if $_GET['apartment']==$val['id']}selected{/if}>{$val['name']}</option>                  
                  {/if}
                  {/loop}
                  </select>  </td>		
  		<td width="80">
        <select name="shi" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['shi']==$i}selected{/if}>{$i}</option>
            {/for}
        </select></td><td> (室)</td><td width="80">
       <select name="ting" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['ting']==$i}selected{/if}>{$i}</option>
            {/for}
       </select> </td><td>(厅)</td><td width="80">
       <select name="wei" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['wei']==$i}selected{/if}>{$i}</option>
            {/for}
       </select> </td><td>(卫)</td><td width="80">
       <select name="chu" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['chu']==$i}selected{/if}>{$i}</option>
            {/for}
       </select> </td><td>(厨)</td><td width="80">
       <select name="yang" class="span2" style="width:80px">        
            <option value="">请选择</option>
            {for $i=1;$i<=10;$i++}
            <option value="{$i}" {if $_GET['yang']==$i}selected{/if}>{$i}</option>
            {/for} 
       </select> </td><td width="50">(阳)</td>
	   
       </tr>
       
   </table>

 地址<input type="text" id="address" name="address" value="{if $_GET['address']}{$_GET['address']}{else}输入关键字(楼盘名或地段等){/if}" class="text" style="width:350px;" autocomplete="off" />          
开始时间<input type="text" id="st" name="start" onclick="return Calendar('st');" value="{$_GET['start']}" class="text" style="width:85px;"/> 终止时间
<input type="text" id="et" onclick="return Calendar('et');" value="{$_GET['end']}" name="end" class="text" style="width:85px;"/>&nbsp;&nbsp;
网号:<input type="text" name="netid" value="{$_GET['netid']}" class="text" style="width:85px;"/>
                       <input type="submit" name="search" class="btn btn-primary" value="搜索">
              
</form>

<div id="selectItem" class="selectItemhidden"> 
	<ul class="clearfix">
	{loop $address $val}
	<li class="clicks">{$val['name']}</li>
	{/loop}
	</ul>
</div> 
<script src="__PUBLIC__/js/showdate.js"></script>
<script src="__PUBLIC__/js/selectCity.js"></script>
<script>
$(function(){
	if($('#address').val()=='输入关键字(楼盘名或地段等)'){
		$('#address').css('color','#ccc')
	}
	$('#address').focus(function(){
		if($('#address').val()=='输入关键字(楼盘名或地段等)'){
			$('#address').val('');
		}
		$(this).css('color','#333');
	});
	$('#address').blur(function(){
		if($('#address').val()==''){
			$('#address').val('输入关键字(楼盘名或地段等)');
			$(this).css('color','#ccc');
		}
		
	});
});
</script>
<style>
.posre{position:relative;top:5px;}
.select2-container{width:180px;}
.select2-search input{width:170px;*width:150px;}
#selectItem {background:#f1f1f1;border:1px solid #ccc;width:920px;display:none;}
#selectItem ul{margin:0;padding:3px;}
#selectItem li{width:90px;float:left;cursor:pointer;list-style:none;margin:0;padding:3px;}
</style>